<?php if ($this->getController()->breadcrumbs): ?>
    <nav class="bread-crumbs">
        <ul>
            <?php
            $url = '';
            $cs = $this->getController()->breadcrumbs;
            $count = count($cs);
            $c = 0;
            foreach ($cs as $pageTitle => $pageUrl):
                $url .= $pageUrl != '/' ? '/' . $pageUrl : '/';
                $c++;
                if ($c != $count)
                    echo '<li><a href="' . str_replace('//', '/', $url) . '">' . $pageTitle . '</a></li>';
                else
                    echo '<li class="selected"><a href="#">' . $pageTitle . '</a></li>';
            endforeach;
            ?>
        </ul>
    </nav>
<?php endif; ?>